package de.koller.eccentricity.render;

import de.koller.eccentricity.ENode;
import org.lwjgl.opengl.GL11;

public class ECamera extends ENode {

	public final float FRAME_RATIO = 4f / 3f;
	
	private float viewHeight = 2;
	
	public void setupProjection() {
		GL11.glMatrixMode( GL11.GL_PROJECTION );
		GL11.glLoadIdentity();

		GL11.glOrtho( -FRAME_RATIO * .5f * viewHeight, FRAME_RATIO * .5f * viewHeight, 
				-viewHeight * .5f, viewHeight * .5f, -10, 1000 );
		
		GL11.glMatrixMode( GL11.GL_MODELVIEW );
		GL11.glLoadIdentity();
	}

	public float getViewHeight() {
		return viewHeight;
	}
	
}
